import server from "@/utils/request";
//通知
//分页获取类型
export function getInformByPage(playold: any = {}) {
    return server.get('/school/inform/getInformByPage', { params: playold })
}
//提交
export function saveInform(playold: any = {}) {
    return server.post(`/school/inform/saveInform?title=${playold.title}&typeId=${playold.typeId}&range=${playold.range}&tId=${playold.tId}&detail=${playold.detail}&priority=${playold.priority}&time=${playold.time}`, playold)
}
//删除
export function deleteInform(id: any) {
    return server.delete(`/school/inform/deleteInform/${id}`)
}
//根据id获取通知
export function getInformById(playold: any = {}) {
    return server.get('/school/inform/getInformById/' + playold.id,)
}

